<?php

/**
* @copyright   (C) 2010 iJoomla, Inc. - All rights reserved.
* @license  GNU General Public License, version 2 (http://www.gnu.org/licenses/gpl-2.0.html) 
* @author  iJoomla.com webmaster@ijoomla.com
* @url   http://www.ijoomla.com/licensing/
* the PHP code portions are distributed under the GPL license. If not otherwise stated, all images, manuals, cascading style sheets, and included JavaScript  
* are NOT GPL, and are released under the IJOOMLA Proprietary Use License v1.0 
* More info at http://www.ijoomla.com/licensing/
*/


defined('_JEXEC') or die('Restricted Access');
JHtml::_('behavior.tooltip');

include(JPATH_ROOT.DS."administrator".DS."components".DS."com_surveys".DS."left.php");

$document =& JFactory::getDocument();
$document->addStyleSheet("components/com_surveys/css/survey.css");

$link = $this->getLink();

?>
<form name="adminForm" id="adminForm">	
	<table cellpadding="4" cellspacing="0" border="0" width="100%"  class='menu_table'>
		<tr>
			<td><h2 style="color:#669900"><?php echo JText::_("COM_SURVEYS_LINKS"); ?></h2></td> 	
		</tr>
		<tr>
			<td><b><?php echo JText::_("COM_SURVEYS_LINK_EMAIL"); ?></b></td> 
		</tr>
		<tr>
			<td><textarea cols="80" rows="4"><?php echo $link; ?></textarea></td>
		</tr>
		<tr>
			<td><b><?php echo JText::_("COM_SURVEYS_LINK_WEB"); ?></b></td>
		</tr>
		<tr>
			<td>
				<textarea cols="80" rows="4"><a href="<?php echo $link; ?>"><?php echo JText::_("COM_SURVEYS_CLICK_TO_TAKE"); ?></a></textarea>
			</td>
		</tr>
	</table>	
	<input type="hidden" name="option" value="com_surveys" />
	<input type="hidden" name="controller" value="links" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="survey_id" value="<?php echo JRequest::getVar("s_id", "0"); ?>" />
</form>

</td></tr></table>
<p><center><?php echo JText::_("COM_IJOOMLA_SURVEYS_POWERED_BY") ; ?>&nbsp;<a href='http://www.ijoomla.com' target='_blank'><?php echo JText::_("COM_SURVEYS_SURVEY"); ?></a></center></p>	